package cn.tedu.jewelry.controller;

import cn.tedu.jewelry.entity.Dispute;
import cn.tedu.jewelry.mapper.DisputeMapper;
import org.omg.CORBA.PUBLIC_MEMBER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/index")
public class DisputeController {
    @Autowired(required = false)
    DisputeMapper mapper;

    //申请退款
    @RequestMapping("/buyerDisputeList")
    public List<Dispute> buyerDisputeList(Integer id){
        return mapper.buyerDisputeList(id);
    }
}
